package com.vv.servcieplus2.controller;

import cn.hutool.core.util.StrUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kw
 * @program cloud-plus2
 * @description
 * @create 2024 - 12 - 07 11:58
 **/
@RestController
@RequestMapping("/index")
public class IndexController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping
    public String get() {
        return StrUtil.uuid() + port;
    }

    @GetMapping("get")
    public String getV2() {
        return StrUtil.uuid() + port;
    }
}
